.vin-range-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 4px;
  .min,
  .max {
    color: $range-tip-font-color;
    font-size: $font-size-1;
    user-select: none;
  }
  &-vertical {
    flex-direction: column;
    height: 100%;
    padding: 0 15px;
    .vin-range {
      width: 4px;
      height: 100%;
      &-button {
        &-wrapper,
        &-wrapper-right {
          position: absolute;
          top: initial;
          right: initial;
          bottom: 0;
          left: 50%;
          transform: translate3d(-50%, 50%, 0);
        }

        &-wrapper-left {
          top: 0;
          right: initial;
          left: 50%;
          transform: translate3d(-50%, -50%, 0);
        }
      }
      .number {
        transform: translate3d(100%, 0, 0);
      }
      &-vertical {
        margin: 10px 0;
      }
      &-mark {
        position: absolute;
        top: initial;
        right: 50%;
        width: 100%;
        width: 36px;
        height: 100%;
        padding: 0;
        overflow: visible;
        font-size: 12px;
      }

      &-mark-text {
        position: absolute;
        display: inline-block;
        width: 20px;
        color: #999;
        line-height: 16px;
        text-align: center;
        word-break: keep-all;
        transform: translateY(-50%);
        user-select: none;
        &-active {
          .vin-range-tick {
            background: $range-bar-bg-color;
          }
        }
      }
      &-tick {
        position: absolute;
        top: 0;
        left: 30px;
        width: 11px;
        height: 11px;
        margin-left: -0;
        background-color: $range-bg-color-tick;
        border-radius: 50%;
      }
    }
  }
}
.vin-range {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  background-color: $range-bg-color;
  border-radius: 2px;
  cursor: pointer;
  &::before {
    position: absolute;
    top: -8px;
    right: 0;
    bottom: -8px;
    left: 0;
    content: '';
  }

  &-bar {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background: $range-bar-bg-color;
    border-radius: inherit;
    transition: all 0.2s;
  }

  &-button {
    display: block;
    width: $range-bar-btn-width;
    height: $range-bar-btn-height;
    background-color: $range-bar-btn-bg-color;
    border: $range-bar-btn-border;
    border-radius: 50%;
    outline: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);

    &-wrapper,
    &-wrapper-right {
      position: absolute;
      top: 50%;
      right: 0;
      outline: none;
      transform: translate3d(50%, -50%, 0);
      cursor: grab;
    }

    &-wrapper-left {
      position: absolute;
      top: 50%;
      left: 0;
      outline: none;
      transform: translate3d(-50%, -50%, 0);
      cursor: grab;
    }

    .number {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      color: $range-tip-font-color;
      font-size: $font-size-1;
      transform: translate3d(0, -100%, 0);
      user-select: none;
    }
  }
  &-disabled {
    cursor: not-allowed;
    opacity: 0.54;

    .vin-range-button-wrapper,
    .vin-range-button-wrapper-left,
    .vin-range-button-wrapper-right {
      cursor: not-allowed;
    }
  }

  &-show-number {
    margin: 0 15px;
  }

  &-mark {
    position: absolute;
    top: 50%;
    width: 100%;
    padding-top: 14px;
    overflow: visible;
    font-size: 12px;
  }

  &-mark-text {
    position: absolute;
    display: inline-block;
    color: #999;
    line-height: 16px;
    text-align: center;
    word-break: keep-all;
    transform: translateX(-50%);
    user-select: none;
    &-active {
      .vin-range-tick {
        background: $range-bar-bg-color;
      }
    }
  }
  &-tick {
    position: absolute;
    top: -20px;
    // margin-left: -11px;
    left: 0;
    width: 11px;
    height: 11px;
    background-color: $range-bg-color-tick;
    border-radius: 50%;
  }
}
